﻿@model NetNote.Models.Note

@{
    ViewBag.Title = "心动笔记";
    Layout = "_Layout";
    var types = ViewBag.Types as IEnumerable<SelectListItem>;
}

<h2>心动笔记</h2>

<div class="container-fluid">
    <div style="margin-top:10PX;margin-bottom:10PX" class="row"></div>
    <form method="post" asp-action="Add" enctype="multipart/form-data">

        <div class="form-group">
            <label asp-for="Title"></label>
            <input asp-for="Title" type="text" placeholder="标题" class="form-control" />
        </div>


        <div class="form-group">
            <label asp-for="Type"></label>
            <select asp-for="Type" asp-items="types" class="form-control"></select>
        </div>

        <div class="form-group">
            <label asp-for="Content"></label>
            <textarea asp-for="Content" data-provide="markdown" rows="10" cols="50" class="form-control"></textarea>
        </div>
        <div class="form-group">
            <label asp-for="Password"></label>
            <input asp-for="Password" type="password" palceholder="如需要加密请输入密码" class="form-control" />
        </div>

        <div class="form-group">
            <label asp-for="Attachment"></label>
            <input asp-for="Attachment" type="file" palceholder="如需要加密请输入密码" class="form-control" />
        </div>
        <hr />
        <p>
            <button type="submit" class="btn">保存</button>
        </p>
    </form>
</div>
